//
//  MyOrderListCell.m
//  AppNew
//
//  Created by 陈名邦 on 2019/6/14.
//  Copyright © 2019 华伟. All rights reserved.
//

#import "MyOrderListCell.h"

@implementation MyOrderListCell

- (void)setModel:(MyOrderModel *)model{
    if (_model != model) {
        _model = model;
        _orderNo.text = [NSString stringWithFormat:@"订单编号:%@",_model.orderNo];
        _type.text = @"USDT";
        _price.text = _model.price;
        _number.text = _model.amount;
        float total = [_model.price floatValue]*[_model.amount floatValue];
        _total.text = [NSString stringWithFormat:@"%.2f",total];
        _time.text = _model.createDate;
        _person.text = [NSString stringWithFormat:@"交易对象:%@",_model.pubUserName];;
    }
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
